package com.ifnk.portaljava.hlyt.dao;

import com.ifnk.portaljava.hlyt.beans.Module;
import com.ifnk.portaljava.hlyt.beans.RolePermission;

import java.util.List;

public interface IRolePermissionDAO {
	
	String PERMISSION = "permission";
	String MODULE_ID = "moduleId";
	String ROLE_ID = "roleId";
	
	void save(RolePermission transientInstance);

	void delete(RolePermission persistentInstance);

	RolePermission findById(Integer id);

	List findByExample(RolePermission instance);

	List findByProperty(String propertyName, Object value);

	List findAll();
	
	List findByModuleId(Object moduleId);
	
	List findByRoleId(Object roleId);

	RolePermission merge(RolePermission detachedInstance);

	void attachDirty(RolePermission instance);

	void attachClean(RolePermission instance);
	
	List findByFuzzyPermission(String propertyName,Object value);
	
	List findByModule(Module module);
}
